package com.dong.es.entity.searchparam.page;

import co.elastic.clients.elasticsearch.core.SearchRequest;
import com.dong.es.entity.EsBaseDTO;
import com.dong.es.entity.searchparam.EsSearchParam;

/**
 * @description: 分页 参数
 * @author: 陈瑞东
 * @create: 2022-06-23 10:28
 */
public abstract class EsPageParam extends EsSearchParam<SearchRequest.Builder> {

    private static final long serialVersionUID = -8678832293357397747L;

    @Override
    protected void addMethod(EsBaseDTO esBaseDTO) {
        setMethod(esBaseDTO);
    }

    @Override
    protected void setMethod(EsBaseDTO esBaseDTO) {
        esBaseDTO.page(this);
    }
}
